package com.demo.controller;

import com.demo.entity.TblBankInfo;
import com.demo.service.TblBankInfoService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author zhiqiang
 */
@RequiredArgsConstructor
@RestController
public class BankInfoController {

    private final TblBankInfoService tblBankInfoService;

    @RequestMapping("/queryBankInfo")
    public List<TblBankInfo> queryBankInfo(){
        return tblBankInfoService.queryBankInfoList();
    }
}
